<?php /* Smarty version 2.6.26, created on 2018-07-25 23:42:34
         compiled from default/shop/left_hot.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'uqcms', 'default/shop/left_hot.html', 8, false),array('modifier', 'img_size', 'default/shop/left_hot.html', 13, false),array('modifier', 'truncate', 'default/shop/left_hot.html', 15, false),)), $this); ?>
<div class="seller_sort">
	<div class="tname"><span>销量排行榜</span></div>
	<div class="tab">
		<a href="javascript:;" class="selected">热销量</a>
		<a href="javascript:;">收藏量</a>
	</div>
	<div class="pxcon">
		<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'gs_data','c' => "goods_hot:spid=smarty.get.id&limit=6"), $this);?>
		
		<div class="con">
		<?php if ($this->_tpl_vars['gs_data']): ?>
			<?php $_from = $this->_tpl_vars['gs_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<dl>
					<dt><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '50x50') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '50x50')); ?>
" width="50" class="lazy"></a></dt>
					<dd>
						<div class="ttl"><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, "..") : smarty_modifier_truncate($_tmp, 10, "..")); ?>
</a></div>
						<div class="pr">￥<?php echo $this->_tpl_vars['i']['price']; ?>
</div>
						<div class="vol">已售 <?php echo $this->_tpl_vars['i']['volume']; ?>
 件</div>
					</dd>
				</dl>
			<?php endforeach; endif; unset($_from); ?> 
		<?php endif; ?>
		</div>
		<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'gc_data','c' => "goods_collect:spid=smarty.get.id&limit=5"), $this);?>

		<div class="con" style="display:none;"> 
		<?php if ($this->_tpl_vars['gc_data']): ?>
			<?php $_from = $this->_tpl_vars['gc_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<dl>
					<dt><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '50x50') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '50x50')); ?>
" width="50"></a></dt>
					<dd>
						<div class="ttl"><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, "..") : smarty_modifier_truncate($_tmp, 10, "..")); ?>
</a></div>
						<div class="pr">￥<?php echo $this->_tpl_vars['i']['price']; ?>
</div>
						<div class="vol">收藏 <?php echo $this->_tpl_vars['i']['collect']; ?>
笔</div>
					</dd>
				</dl>
			<?php endforeach; endif; unset($_from); ?>
		<?php endif; ?>	 
		</div>
	</div>
</div>